const pie = () => import('@/components/maps/pie.vue');
const histogram = () => import('@/components/maps/histogram.vue')
const forceDirected = () => import('@/components/maps/forceDirected.vue')
const three = () => import('@/components/maps/three.vue')
const org = () => import('@/components/maps/Organization.vue')

const maps = {
  pie,
  histogram,
  forceDirected,
  three,
  org
}

export default {
  name: 'Maps',
  functional: true,       // 标记
  render: function (createElement, context) {
    const mapName = context.props.mapName;
    return createElement(maps[mapName], context.data);
  }
}